# -*- coding: utf-8 -*-
# @Time    : 2022/6/22 21:44
# @Author  : AUGUS
# @Email   : augus@jilin.com
# @File    : urls.py
# @Software: PyCharm
from django.urls import path
from .views import *
from rest_framework.routers import DefaultRouter

urlpatterns = [
    # path('students/', StudentViewSet.as_view({'get': 'list', 'post': 'create'})),
    # path('students/<pk>/', StudentViewSet.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'})),
    # path('students/', StudentViewSet.as_view({'get': 'list'})),
]
router = DefaultRouter()
router.register('students', StudentsViewSet)
router.register('classes', ClassesViewSet)
urlpatterns += router.urls
